home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09962.iso / themestz / xf-them2.zip / Uninstall X-Files logos.bat < prev    next >
DOS Batch File  |  1996-08-02  |  3KB  |  87 lines

  1. @echo off
  2. cls
  3.  
  4. REM Logo uninstallation procedure for "X-Files - The Theme v2.0"
  5. REM Version 2.0, August 2, 1996
  6. REM
  7. REM D.Sanders, email: danny@stack.urc.tue.nl
  8. REM
  9. REM This file must be run from Windows 95!
  10.  
  11. REM ====================================================================================
  12.  
  13.     echo ===============================================================================
  14.     echo                             X-Files - The Theme v2.0
  15.     echo                         Logo Uninstallation Program v2.0
  16.     echo                                 by Danny Sanders
  17.     echo                                  August 2, 1996
  18.     echo ===============================================================================
  19.     goto windows
  20.  
  21. REM ====================================================================================
  22.  
  23. REM Check for Windows environment
  24. :windows
  25.     if "%windir%"=="" goto no_win
  26.     goto source
  27.  
  28. REM Check for source files.
  29. :source
  30.     if not exist %windir%\logos.w95 goto no_logos
  31.     if not exist %windir%\logow.w95 goto no_logow
  32.     goto uninstall
  33.  
  34. REM ====================================================================================
  35.  
  36. REM Uninstall logos
  37. :uninstall
  38.     echo  
  39.     echo Uninstalling logos, please wait...
  40.     if exist c:\logo.sys if not exist c:\logo.xf2 rename c:\logo.sys logo.xf2
  41.     if exist c:\logo.sys del c:\logo.sys
  42.     if exist c:\logo.w95 rename c:\logo.w95 logo.sys
  43.     if exist %windir%\logow.sys if not exist %windir%\logow.xf2 rename %windir%\logow.sys logow.xf2
  44.     if exist %windir%\logow.sys del %windir%\logow.sys
  45.     rename %windir%\logow.w95 logow.sys
  46.     if exist %windir%\logos.sys if not exist %windir%\logos.xf2 rename %windir%\logos.sys logos.xf2
  47.     if exist %windir%\logos.sys del %windir%\logos.sys
  48.     rename %windir%\logos.w95 logos.sys
  49.     goto done
  50.  
  51. REM ====================================================================================
  52.  
  53. REM Display done message
  54. :done
  55.     echo  
  56.     echo Logos succesfully uninstalled.
  57.     goto end
  58.  
  59. REM ====================================================================================
  60.  
  61. REM Print errormessage
  62. :no_win
  63.   echo  
  64.   echo The uninstallation script hasn't been able to detect Microsoft Windows 95.
  65.   echo Please start Windows 95 and try again.
  66.   goto end
  67.  
  68. REM Print errormessage
  69. :no_logos
  70.   echo  
  71.   echo The uninstallation script can't find the backup copy of the shutdown logo.
  72.   echo Without this backup it is not possible to uninstall the logos.
  73.   goto end
  74.  
  75. REM Print errormessage
  76. :no_logow
  77.   echo  
  78.   echo The uninstallation script can't find the backup copy of the turn-off logo.
  79.   echo Without this backup it is not possible to uninstall the logos.
  80.   goto end
  81.  
  82. REM ====================================================================================
  83.  
  84. REM End.
  85. :end
  86.   echo  
  87.